
import OperationBtn from '../component/operationBtn'
import { Tag, Typography } from 'antd';
const { Text } = Typography;

//管理员列
export const columns = [
    {
        title: '姓名',
        dataIndex: 'name',
        key: 'name',
        align: 'center',
        width: 100,
        ellipsis: true,
        render: (text) => {
            return (
                <Text type="strong">{text}</Text>
            )
        },
    },

    {
        title: '所属组织',
        dataIndex: 'organization',
        key: 'organization',
        align: 'center',
        width: 100,
        ellipsis: true,
        render: (text) => {
            return (
                <Tag bordered={false} color="blue">{text}</Tag>
            )
        },
    },

    {
        title: '权限等级',
        dataIndex: 'permissionLevel',
        key: 'permissionLevel',
        width: 100,
        align: 'center',
        ellipsis: true,
        render: (text) => {
            return (
                <div>
                    <Tag color="magenta">{text}</Tag>
                </div>
            )
        },
    },
    {
        title: '权限范围',
        dataIndex: 'permissionScope',
        key: 'permissionScope',
        align: 'center',
        width: 100,
        render: (text) => {
            return (
                <Tag color="magenta">{text}</Tag>
            )
        },
    },
    {
        title: '操作',
        dataIndex: 'operation',
        key: 'operation',
        align: 'center',
        width: 100,
        render: (userInfo) => {
            return (
                <OperationBtn userInfo={userInfo}></OperationBtn>
            )
        },
    },
];

export default columns;